package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {
    OrderInfoVo trade(TradeVo tradeVo);

   void submitOrder(OrderInfoVo orderInfoVo);

    OrderInfo getOrderInfo(String orderNo);

    boolean updateOrderStatus(String orderNo, String orderStatusUnpaid, String orderStatusPaid);

    Page<OrderInfo> findUserPage(int page, int limit);
}

